<?php 
namespace Weixin\Controller;
use Weixin\Api\WebpageApi;

/**
 * 响应来自微信客户端中点击链接产生的问卷页面请求
 */
class InterviewController extends BaseController
{


	/**
	 * 问卷单页应用程序的输出
	 */
	public function index()
	{
		
		$id=I('get.questionnaireID');
		$id = preg_replace('/[qrscene_]+/i','',$id);
		$result=M('questionnaires')->where("id='".$id."'")->find();
		$this->assign('questionnaireID', I('get.questionnaireID'));
		$iswp=$result['iswp'];
		$this->assign("iswp",$iswp);
		$this->display();
	}

}
?>